home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
-
- Global Const MB_OK = 0
- Global Const MB_OKCANCEL = 1
- Global Const MB_YESNOCANCEL = 3
- Global Const MB_YESNO = 4
- Global Const MB_ICONSTOP = 16
- Global Const MB_ICONQUESTION = 32
- Global Const MB_ICONEXCLAMATION = 48
- Global Const MB_ICONINFORMATION = 64
- Global Const MB_DEFBUTTON2 = 256
- Global Const IDYES = 6
- Global Const IDNO = 7
-
- Dim sTheAppName$
-
- Function AskUser (ByVal sQuestion As String) As Integer
- Dim nResponse%
-
- Beep
- nResponse = MsgBox(sQuestion, MB_YESNO + MB_ICONQUESTION, sTheAppName)
- If nResponse = IDYES Then
- AskUser = True
- Else
- AskUser = False
- End If
-
- End Function
-
- Sub InformUser (sMsg As String)
-
- Beep
- MsgBox sMsg, MB_ICONEXCLAMATION + MB_OK, sTheAppName
-
- End Sub
-
- Sub InitMB (ByVal sAppName As String)
- sTheAppName = sAppName
- End Sub
-
- Sub StopUser (sMsg As String)
-
- Beep
- MsgBox sMsg, MB_ICONSTOP + MB_OK, sTheAppName
-
- End Sub
-